#ifndef _DELAY_H
#define _DELAY_H

void Delay1ms();
void sleep(int interval/*ms*/);

void Delay1ms()		//@12.000MHz
{
	unsigned char i, j;

	i = 12;
	j = 169;
	do
	{
		while (--j);
	} while (--i);
}

void sleep(int interval/*ms*/){	
	while(interval--) Delay1ms();
}


#endif
